package com.two.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author 汪瑞明
 * @since 2022-08-29
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "User对象", description = "")
@TableName(value = "tbl_user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户id")
    @TableId(value = "userid", type = IdType.AUTO)
    private Integer userid;

    @ApiModelProperty("用户账号")
    private String username;

    @ApiModelProperty("用户密码")
    private String password;

    @ApiModelProperty("用户昵称")
    private String usermonicker;

    @ApiModelProperty("所属角色")
    private Integer roleid;

    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty("用户电话")
    private String phone;

    @ApiModelProperty("盐")
    private String salt;
    @ApiModelProperty("所属角色名")
    private String rolename;

    @ApiModelProperty("用户头像")
    private String url;

    @ApiModelProperty("餐厅id")
    private Integer rid;

}
